home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / misc / ispell31.lha / ispell-3.1.18src / languages / deutsch / Makefile < prev   
Makefile  |  1994-11-02  |  6KB  |  189 lines

  1. #
  2. # $Id: Makefile,v 1.11 1994/08/31 05:58:47 geoff Exp $
  3. #
  4. # Copyright 1993, Geoff Kuenning, Granada Hills, CA
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. #    notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. #    notice, this list of conditions and the following disclaimer in the
  15. #    documentation and/or other materials provided with the distribution.
  16. # 3. All modifications to the source code must be clearly marked as
  17. #    such.  Binary redistributions based on modified source code
  18. #    must be clearly marked as modified versions in the documentation
  19. #    and/or other materials provided with the distribution.
  20. # 4. All advertising materials mentioning features or use of this software
  21. #    must display the following acknowledgment:
  22. #      This product includes software developed by Geoff Kuenning and
  23. #      other unpaid contributors.
  24. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  25. #    products derived from this software without specific prior
  26. #    written permission.
  27. #
  28. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  29. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  32. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38. # SUCH DAMAGE.
  39. #
  40. # This makefile is an example of how you might write a makefile for a
  41. # simple language which has only a single dictionary available.  For
  42. # an example of a complex makefile, look at the makefile for English.
  43. #
  44. # $Log: Makefile,v $
  45. # Revision 1.11  1994/08/31  05:58:47  geoff
  46. # Create directories before installing into them.
  47. #
  48. # Revision 1.10  1994/05/25  04:29:34  geoff
  49. # Purge Martin Schulz's obsolete e-mail address from the file.
  50. #
  51. # Revision 1.9  1994/02/22  06:09:08  geoff
  52. # Add SHELLDEBUG.
  53. #
  54. # Revision 1.8  1994/02/07  06:18:03  geoff
  55. # Use MAKE_SORTTMP when building the dictionary
  56. #
  57. # Revision 1.7  1994/02/07  06:07:57  geoff
  58. # Add a dummy else clause to shell if-test for Ultrix
  59. #
  60. # Revision 1.6  1994/01/25  07:12:30  geoff
  61. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  62. #
  63. #
  64.  
  65. SHELL = /bin/sh
  66. MAKE = make
  67.  
  68. CONFIG        =    ../../config.sh
  69. PATHADDER    =    ../..
  70. BUILDHASH    =    ../../buildhash
  71. UNSQ        =    ../../unsq
  72. FIX8BIT        =    ../fix8bit
  73.  
  74. # The following variables should be set by the superior Makefile,
  75. # based on the LANGUAGES variable in config.X.
  76. #
  77. # The German dictionary I use is due to Martin Schulz, Moncton, New
  78. # Brunswick, Canada.  It is not distributed with ispell due to its
  79. # size, but is available for ftp (see the languages/Where file for
  80. # locations).
  81. #
  82. # Martin's dictionary has been broken up into a number of sub-files
  83. # which can be combined to make a master dictionary.  See the files
  84. # README or LIESMICH for more information on what these sub-files
  85. # contain.
  86. #
  87. # The DICTOPTIONS variable should be set to a list of one or more files,
  88. # separated by spaces, and selected from the following options:
  89. #
  90. #    abkuerz.txt abweichend.txt compeng.txt elektronik.txt
  91. #    geographie.txt infoabk.txt informatik.txt namen.txt
  92. #    seltenes.txt technik.txt zusammen.txt
  93. #
  94. #
  95. # If you change DICTOPTIONS in your local.h file, you will have to do
  96. # "make dictclean" to clear out the old dictionary before you re-make.
  97. #
  98. DICTALWAYS    =    adjektive.txt worte.txt verben.txt
  99. DICTOPTIONS    =    Use_LANGUAGES_from_config.X
  100.  
  101. #
  102. # The following variables may be overridden by the superior Makefile,
  103. # based on the LANGUAGES variable in config.X.  Note that selection of
  104. # the affix file is closely related to the dictionary chosen; don't
  105. # change the affix file unless you know what you are doing!
  106. #
  107. AFFIXES    =    deutsch.aff
  108.  
  109. #
  110. #    Set this to "-vx" in the make command line if you need to
  111. #    debug the complex shell commands.
  112. #
  113. SHELLDEBUG = +vx
  114.  
  115. all:    deutsch.hash
  116.  
  117. install: all $(CONFIG)
  118.     @. $(CONFIG); \
  119.       set -x; \
  120.       [ -d $$LIBDIR ]  ||  (mkdir $$LIBDIR; chmod 755 $$LIBDIR); \
  121.       cd $$LIBDIR; rm -f deutsch.aff deutsch.hash
  122.     @. $(CONFIG); \
  123.       set -x; \
  124.       cp deutsch.aff deutsch.hash $$LIBDIR
  125.     @. $(CONFIG); \
  126.       set -x; \
  127.       cd $$LIBDIR; \
  128.       chmod 644 deutsch.aff deutsch.hash
  129.  
  130. deutsch.hash:    $(BUILDHASH) $(AFFIXES) deutsch.dict
  131.     rm -f deutsch.hash
  132.     $(BUILDHASH) deutsch.dict $(AFFIXES) deutsch.hash
  133.  
  134. $(AFFIXES):    deutsch.7bit $(FIX8BIT)
  135.     $(FIX8BIT) -8 < deutsch.7bit > $(AFFIXES)
  136.  
  137. deutsch-alt.aff:    deutsch-alt.7bit $(FIX8BIT)
  138.     $(FIX8BIT) -8 < deutsch-alt.7bit > deutsch-alt.aff
  139.  
  140. $(FIX8BIT):    ../fix8bit.c
  141.     cd ..; $(MAKE) fix8bit
  142.  
  143. deutsch.dict:    $(DICTALWAYS) $(DICTOPTIONS)
  144.     . $(CONFIG); \
  145.       eval sort -f -o deutsch.dict $$MAKE_SORTTMP \
  146.         $(DICTALWAYS) $(DICTOPTIONS)
  147.  
  148. #
  149. #    The following dependency can be executed when ispell is unpacked,
  150. #    to unpack the dictionaries.
  151. #
  152. unpack:    $(AFFIXES)
  153.  
  154. $(UNSQ):
  155.     set +e; \
  156.     set $(SHELLDEBUG); \
  157.     if [ ! -x $(UNSQ) ]; \
  158.     then \
  159.         set -e; \
  160.         cd ../..; \
  161.         $(MAKE) unsq; \
  162.     else \
  163.         : ; \
  164.     fi
  165.  
  166. clean:
  167.     rm -f core *.hash *.stat *.cnt
  168.  
  169. #
  170. #    The following target is used in the English makefile, and is
  171. #    required to be present in all other language Makefiles as
  172. #    well, even though it doesn't have to do anything in those
  173. #    directories.
  174. #
  175. kitclean:
  176.  
  177. #
  178. #    The following target allows you to clean out the combined
  179. #    dictionary file.
  180. #
  181. dictclean:
  182.     rm -f deutsch.dict
  183.  
  184. #    required to be present in all other language Makefiles as
  185. #    well, even though it doesn't have to do anything in those
  186. #    directories.
  187. #
  188. dictclean:
  189.